#include <iostream>
#include "myh/MyLog.hpp"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h> //
#include <cstring>
#include "tcpserve.hpp"

void Explain()
{
    std::cout << "./client  [port]" << std::endl;
}
void test2(uint16_t port)
{
    tcpserve::Getinitance(port);
    tcpserve::Getinitance()->run();
}

int main(int num, char *args[])
{
    if (num != 2)
    {
        Explain();
        exit(0);
    }
    uint16_t port = std::stol(args[1]);

    test2(port);

    return 0;
}